package com.ztgf.order.models.enums;

/**
 * @author YUE
 * @create 2020-06-27 17:37
 */
public enum  OrderStateEnum {
    //0待确定、1待签合同、2待付款、3待发货、4待签收、5已签收、6已取消
    ORDER_STATE_ENUM_WAIT_SURE(0,"待确定"),
    ORDER_STATE_ENUM_WAIT_CONTACT(1,"待签合同"),
    ORDER_STATE_ENUM_WAIT_PAY(2,"待付款"),
    ORDER_STATE_ENUM_WAIT_DELIVER_GOODS(3,"待发货"),
    ORDER_STATE_ENUM_WAIT_SIGN(4,"待签收"),
    ORDER_STATE_ENUM_SIGNED(5,"已签收"),
    ORDER_STATE_ENUM_CANCEL(6,"买家已取消"),
    ORDER_STATE_ENUM_SELLER_CANCEL(7,"卖家已取消"),

    //合同状态 0未签订、1买家签订、2卖家签订
    ORDER_CONTACT_STATE_NO_SIGN(0,"未签订"),
    ORDER_CONTACT_STATE_BUYER_SIGN(1,"买家签订"),
    ORDER_CONTACT_STATE_SELLER_SIGN(2,"卖家签订"),
    ORDER_CONTACT_STATE_BUYER_SIGNING(3,"买家签订中"),
    ORDER_CONTACT_STATE_SELLER_SIGNING(4,"卖家签订中"),

    //支付状态 0未付款、1支付中、2支付成功、3支付失败
    ORDER_PAY_STATE_NO_PAY(0,"未付款"),
    ORDER_PAY_STATE_PAYING(1,"支付中"),
    ORDER_PAY_STATE_PAY_SUCCESS(2,"支付成功"),
    ORDER_PAY_STATE_PAY_FAIL(3,"支付失败"),

    //货物生产状态 0未生成、1生产中、2生产完成
    ORDER_GOODS_NO_PRO(0,"未生成"),
    ORDER_GOODS_PRO_ING(1,"生产中"),
    ORDER_GOODS_PRO_OVER(2,"生产完成"),

    //订单过程状态 0提交订单 1付款成功 2商品出库 3等待收货 4交易完成
    ORDER_SUBMIT(0,"提交订单"),
    ORDER_PAY_SUCCESS(1,"付款成功"),
    ORDER_GOODS_WAREHOUSE_OUT(2,"商品出库"),
    ORDER_WAIT_DELIVERY_GOODS (3,"等待收货"),
    ORDER_DEAL_SUCCESS(4,"交易完成"),

    //发票状态 0未开票、1申请中、2已开票
    ORDER_INVOICE_NOT_MAKE(0,"未开票"),
    ORDER_INVOICE_MAKING(1,"申请中"),
    ORDER_INVOICE_MADE(2,"已开票"),

    //发票类型 0普票，1专票
    ORDER_INVOICE_COMMON(0,"普票"),
    ORDER_INVOICE_SPECIALLY(1,"专票")

    ;
    private int code;
    private String msg;

    OrderStateEnum(int code, String msg) {
        this.code = code;
        this.msg = msg;
    }

    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }}
